---------------------------------------------------------------------------
-- Entity declaration of 'displays'.
---------------------------------------------------------------------------

LIBRARY ieee ;
USE ieee.std_logic_1164.ALL ;
USE ieee.std_logic_arith.ALL ;

ENTITY d_LED_display IS
   PORT( 
      rst       : IN     std_logic;
      hex0      : IN     std_logic_vector (7 DOWNTO 0);
      hex1      : IN     std_logic_vector (7 DOWNTO 0);
      user_LED2 : IN     std_logic;
      user_LED1 : IN     std_logic
   );

-- Declarations

END d_LED_display ;

---------------------------------------------------------------------------
-- Architecture 'a0' of 'displays'
---------------------------------------------------------------------------

ARCHITECTURE a0 OF d_LED_display IS





BEGIN 
    
    
  
    

	PROCESS(rst, user_LED2, user_LED1, hex1, hex0)

		TYPE vector_file IS FILE OF std_logic_vector(17 DOWNTO 0);
		FILE     f : vector_file;

	BEGIN

		file_open(f,"LED_display.lst",write_mode);
		--IF FALLING_EDGE(rst) THEN
		  WRITE (f, user_LED2 & user_LED1 & hex1 & hex0);  
	--	ELSE  
		 -- WRITE (f, user_LED2 & user_LED1 & hex1 & hex0);
	--	END IF;
		file_close(f);            

	END PROCESS;

END  a0 ; -- of displays
